import request from './request'

// 添加成绩
export function addScore(data) {
  return request.post('/scores/add', data)
}

// 获取某个成员的成绩
export function getScoresByMember(memberId) {
  return request.get('/scores/member', {
    params: { member_id: memberId }
  })
}

// 获取某个测试的成绩排名
export function getScoresByTest(testName) {
  return request.get('/scores/rank', {
    params: { test_name: testName }
  })
}
